The UNION operator is used to combining the results of two tables, and it eliminates duplicate rows from the tables.
SELECT * FROM table1
UNION
SELECT * FROM table2;
The MINUS operator is used to returning rows from the first query but not from the second query. The matching records of the first and second query and other rows from the first query will be displayed as a result set.
SELECT * FROM table1
MINUS
SELECT * FROM table2;
The INTERSECT operator is used to return rows returned by both the queries.
SELECT * FROM table1
INTERSECT
SELECT * FROM table2;
Liked By
Write Answer
What is Union, minus and Interact commands?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
12-Sep-2019The UNION operator is used to combining the results of two tables, and it eliminates duplicate rows from the tables.
The MINUS operator is used to returning rows from the first query but not from the second query. The matching records of the first and second query and other rows from the first query will be displayed as a result set.
The INTERSECT operator is used to return rows returned by both the queries.